home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8543 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  51 lines

  1. Newsgroups: comp.lang.c++
  2. Path: ncrgw2.ncr.com!ncrhub6!daynews!ranger!news
  3. From: Jeff Miko <jeffmiko@erinet.com>
  4. Subject: HELP!!  Linker Error Driving Me Bats - LNK2001 Unresolved 
  5. X-Nntp-Posting-Host: 192.127.53.180
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <DMu5uA.Jyu@ranger.daytonoh.attgis.com>
  8. Sender: news@ranger.daytonoh.attgis.com (News Administrative Login)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: AT&T Global Information Solutions
  11. Mime-Version: 1.0
  12. Date: Thu, 15 Feb 1996 21:18:10 GMT
  13. X-Mailer: Mozilla 1.22 (Windows; U; 32bit)
  14.  
  15. The error I'm getting is:   
  16.  
  17. error LNK2001: unresolved external symbol 
  18. _WNetCancelConnectionA@8
  19.  
  20.  
  21.  
  22. I'm trying to call the function WNetCancelConnection and I'm
  23. getting this frustrating error.  I'm using MS Visual C++ 4.0
  24.  
  25. In my main header "netman.h" file I have:
  26.  
  27.     #ifndef WINNETWKH
  28.     #define WINNETWKH
  29.     #include <winnetwk.h>
  30.     #endif
  31.  
  32. In my class header "netclass.h" file I have:
  33.  
  34.     unsigned long WINAPI __stdcall WNetCancelConnection( LPCSTR
  35.     lpName, BOOL fForce);
  36.  
  37. In my class cpp file "netclass.cpp" I have:
  38.  
  39.     DWORD dwResult;
  40.     dwResult = WNetCancelConnection("F:", TRUE);
  41.  
  42.  
  43. Can anybody help me.  I know I'm doing a "newbie" thing
  44. here, but I've been trying to figure it out for some time.
  45.  
  46. Thanks, Jeff
  47.  
  48.  
  49.  
  50.  
  51.